<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />

<style type="text/css">
td {
	width: 130px;
	background-color: #C4E1FF;
	font-size: 13pt;
	text-align: center;
}
</style>
</head>
<body>
	<script type="text/javascript">
function delete_confirm()
{
	return confirm("您真的要删除这个用户么？");
}

function delete_all_confirm()
{
	return confirm("真的要删除所有用户么？");
}

</script>
	<center>
		<form action="<?php echo site_url("admin/remove_all_user");?>"
			onSubmit="delete_all_confirm()">
			<input type="submit" value="删除所有用户"></input>
		</form>

		<table>
			<tr>
				<td colspan="4"><strong>所有用户</strong>
				</td>
			</tr>
			<?php
			for($i = 0; $i < count($all_user_info); $i ++){
				$user_info = $all_user_info[$i];
				$uid = $user_info["uid"];
				$nickname = $user_info["nickname"];
				$lastloginat = $user_info["lastloginat"];

				echo "<tr>";
				echo "<td>";
				echo "<span>$uid</span>";
				echo "</td>";

				echo "<td>";
				echo "<span>$nickname</span>";
				echo "</td>";

				echo "<td>";
				echo "<span>$lastloginat</span>";
				echo "</td>";

				echo "<td>";
				echo "<a href=\"".site_url("admin/remove_user"."/$uid")."\" onClick=\"delete_confirm()\">删除</a>";
				echo "</td>";
				echo "</tr>";
			}
			?>

		</table>
	</center>
</body>
</html>
